package com.xk.ucs.controller;

import com.xk.ucs.common.Result;
import com.xk.ucs.service.AdminRemoteService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName DebugController
 * @Description TODO:
 * @Author zhouLiang
 * @Date 2024/9/23 15:32
 */
@RestController
@RequestMapping("debug")
@Api("调试服务")
public class DebugController {
    @Resource
    private AdminRemoteService adminRemoteService;
    @PostMapping("goods/get")
    @ApiOperation("查询商品")
    public Result<Map<String,Object>> getGoods() throws Exception{
        Map<String,Object> req = new HashMap<>();
        req.put("barCode","123");
        return Result.success(adminRemoteService.getGoods(req));
    }
}
